export const local_components_for_router = {
  'fp_setting.action_user': () => import('@/fapiao_ui/fp_setting/action_user'),

  //

  // 'fapiao.action_in_fapiao': () =>
  //   import('@/fapiao_ui/fapiao/action_in_fapiao'),
  // 'fapiao.action_in_refund': () =>
  //   import('@/fapiao_ui/fapiao/action_in_refund'),

  // 'fapiao.action_out_refund': () =>
  //   import('@/fapiao_ui/fapiao/action_out_refund'),

  //

  'fapiao.action_out_fapiao': () =>
    import('@/fapiao_ui/fapiao/action_out_fapiao/action_out_fapiao'),

  'fapiao.action_out_fapiao_general': () =>
    import('@/fapiao_ui/fapiao/action_out_fapiao/action_out_fapiao'),

  'fapiao.action_out_fapiao_general_e': () =>
    import('@/fapiao_ui/fapiao/action_out_fapiao/action_out_fapiao'),

  'fapiao.action_out_fapiao_special': () =>
    import('@/fapiao_ui/fapiao/action_out_fapiao/action_out_fapiao'),

  'fapiao.action_out_fapiao_special_e': () =>
    import('@/fapiao_ui/fapiao/action_out_fapiao/action_out_fapiao'),

  //

  'fp_sale.action_fp_sale_order': () =>
    import('@/fapiao_ui/fp_sale/action_fp_sale_order/action_fp_sale_order'),

  'fp_sale.action_fp_ods_sale_order': () =>
    import(
      '@/fapiao_ui/fp_sale/action_fp_ods_sale_order/action_fp_ods_sale_order'
    ),

  'fp_sale.action_fp_ods_sale_order_general': () =>
    import(
      '@/fapiao_ui/fp_sale/action_fp_ods_sale_order/action_fp_ods_sale_order'
    ),

  'fp_sale.action_fp_ods_sale_order_general_e': () =>
    import(
      '@/fapiao_ui/fp_sale/action_fp_ods_sale_order/action_fp_ods_sale_order'
    ),

  'fp_sale.action_fp_ods_sale_order_special': () =>
    import(
      '@/fapiao_ui/fp_sale/action_fp_ods_sale_order/action_fp_ods_sale_order'
    ),

  'fp_sale.action_fp_ods_sale_order_special_e': () =>
    import(
      '@/fapiao_ui/fp_sale/action_fp_ods_sale_order/action_fp_ods_sale_order'
    ),

  'fp_sale.action_fp_nc_ods_sale_order': () =>
    import(
      '@/fapiao_ui/fp_sale/action_fp_nc_ods_sale_order/action_fp_nc_ods_sale_order'
    )
}

export const local_menus_tree = [
  // {
  //   id: 'test',
  //   icon: 'shopping',
  //   theme: 'twoTone',
  //   name: '测试用菜单',
  //   children: [
  //     {
  //       action: 'base.action_country',
  //       id: 'base.action_country',
  //       icon: 'shopping',
  //       theme: 'twoTone',
  //       name: '国家'
  //     },

  //     {
  //       action: 'base.action_country_group',
  //       id: 'base.action_country_group',
  //       icon: 'shopping',
  //       theme: 'twoTone',
  //       name: '国家组'
  //     }
  //   ]
  // },
  {
    id: 'fp_in_fapiao',
    icon: 'shopping',
    theme: 'twoTone',
    name: '进项发票管理',
    children: [
      // {
      //   action: 'fapiao.action_in_fapiao',
      //   id: 'fp_in_fapiao.menu_action_in_fapiao',
      //   icon: 'shopping',
      //   theme: 'twoTone',
      //   name: '进项蓝票'
      // },
      // {
      //   action: 'fapiao.action_in_refund',
      //   id: 'fp_in_fapiao.menu_action_in_refund',
      //   icon: 'shopping',
      //   theme: 'twoTone',
      //   name: '进项红票'
      // }
    ]
  },
  {
    id: 'fp_out_fapiao',
    icon: 'shopping',
    theme: 'twoTone',
    name: '销项蓝票管理',

    children: [
      // {
      //   action: 'fapiao.action_out_fapiao',
      //   id: 'fp_out_fapiao.menu_action_out_fapiao',
      //   icon: 'shopping',
      //   theme: 'twoTone',
      //   name: '销项蓝票'
      // },

      {
        action: 'fapiao.action_out_fapiao_general',
        id: 'fp_out_fapiao.menu_action_out_fapiao_general',
        icon: 'shopping',
        theme: 'twoTone',
        name: '销项普票'
      },

      {
        action: 'fapiao.action_out_fapiao_general_e',
        id: 'fp_out_fapiao.menu_action_out_fapiao_general_e',
        icon: 'shopping',
        theme: 'twoTone',
        name: '销项电普'
      },

      {
        action: 'fapiao.action_out_fapiao_special',
        id: 'fp_out_fapiao.menu_action_out_fapiao_special',
        icon: 'shopping',
        theme: 'twoTone',
        name: '销项专票'
      }
      // {
      //   action: 'fapiao.action_out_fapiao_special_e',
      //   id: 'fp_out_fapiao.menu_action_out_fapiao_special_e',
      //   icon: 'shopping',
      //   theme: 'twoTone',
      //   name: '销项电专'
      // }
    ]
  },

  // {
  //   action: 'fapiao.action_out_refund',
  //   id: 'fp_out_fapiao.menu_action_out_refund',
  //   icon: 'shopping',
  //   theme: 'twoTone',
  //   name: '销项红票'
  // }

  {
    id: 'fp_sale',
    icon: 'shopping',
    theme: 'twoTone',
    name: '销售管理',

    children: [
      {
        action: 'fp_sale.action_fp_sale_order',
        id: 'fp_sale.menu_action_fp_sale',
        icon: 'shopping',
        theme: 'twoTone',
        name: '待处理数据'
      },
      {
        id: 'fp_sale_fp_ods_sale_order',
        icon: 'shopping',
        theme: 'twoTone',
        name: '原始单据',
        children: [
          {
            action: 'fp_sale.action_fp_ods_sale_order_general',
            id: 'fp_sale.menu_action_fp_ods_sale_order_general',
            icon: 'shopping',
            theme: 'twoTone',
            name: '普票单据'
          },
          {
            action: 'fp_sale.action_fp_ods_sale_order_general_e',
            id: 'fp_sale.menu_action_fp_ods_sale_order_general_e',
            icon: 'shopping',
            theme: 'twoTone',
            name: '电普单据'
          },
          {
            action: 'fp_sale.action_fp_ods_sale_order_special',
            id: 'fp_sale.menu_action_fp_ods_sale_order_special',
            icon: 'shopping',
            theme: 'twoTone',
            name: '专票单据'
          }
          // {
          //   action: 'fp_sale.action_fp_ods_sale_order_special_e',
          //   id: 'fp_sale.menu_action_fp_ods_sale_order_special_e',
          //   icon: 'shopping',
          //   theme: 'twoTone',
          //   name: '电专单据'
          // }
        ]
      },

      {
        action: 'fp_sale.action_fp_nc_ods_sale_order',
        id: 'fp_sale.menu_action_fp_nc_ods_sale_order',
        icon: 'shopping',
        theme: 'twoTone',
        name: '导入数据'
      }
    ]
  },

  {
    id: 'fp_product',
    icon: 'shopping',
    theme: 'twoTone',
    name: '商品管理',
    children: [
      {
        action: 'fp_product.action_vat_product',
        id: 'fp_product.menu_action_vat_product',
        icon: 'shopping',
        theme: 'twoTone',
        name: '税务分类'
      },

      {
        action: 'fp_product.action_product',
        id: 'fp_product.menu_product',
        icon: 'shopping',
        theme: 'twoTone',
        name: '商品管理'
      }

      // {
      //   action: 'fp_product.action_nc_product',
      //   id: 'fp_product.menu_action_nc_product',
      //   icon: 'shopping',
      //   theme: 'twoTone',
      //   name: 'NC商品管理'
      // }
    ]
  },

  {
    id: 'fp_partner',
    icon: 'shopping',
    theme: 'twoTone',
    name: '客户管理',
    children: [
      {
        action: 'fp_partner.action_partner',
        id: 'fp_partner.menu_partner',
        icon: 'shopping',
        theme: 'twoTone',
        name: '开票客户'
      },

      {
        action: 'fp_partner.action_biz_partner',
        id: 'fp_partner.menu_action_biz_partner',
        icon: 'shopping',
        theme: 'twoTone',
        name: '业务客户'
      }

      // {
      //   action: 'fp_partner.action_nc_partner',
      //   id: 'fp_partner.menu_action_nc_partner',
      //   icon: 'shopping',
      //   theme: 'twoTone',
      //   name: '导入客户'
      // }
    ]
  },

  {
    id: 'fp_setting',
    icon: 'shopping',
    theme: 'twoTone',
    name: '系统设置',
    children: [
      {
        action: 'fp_setting.action_company',
        id: 'fp_setting.menu_action_company',
        icon: 'shopping',
        theme: 'twoTone',
        name: '公司'
      },

      {
        action: 'fp_setting.action_taxmachine',
        id: 'fp_setting.menu_action_taxmachine',
        icon: 'shopping',
        theme: 'twoTone',
        name: '税控设备'
      },

      {
        action: 'fp_setting.action_user',
        id: 'fp_setting.menu_action_user',
        icon: 'shopping',
        theme: 'twoTone',
        name: '用户'
      },

      {
        action: 'fp_setting.action_fp_users',
        id: 'fp_setting.menu_action_fp_users',
        icon: 'shopping',
        theme: 'twoTone',
        name: '用户开票设置'
      }
    ]
  }
]
